#include "modbus_server.h"
#include "modbus_port.h"
#include "mb.h"
//#include "w5500_driver.h"

extern W5500_TypeDef gst_W5500_Dev;

void ModbusServer_Init(void)
{
    ModbusPort_SetW5500Device(&gst_W5500_Dev,5005);
    eMBTCPInit(502);
    eMBEnable();
}

void ModbusServer_Process(void)
{
   	//uint8_t Modbus_Recvflag;
	  //printf("ModbusServer_Process running\r\n");
    (void)eMBPoll();
}


